package com.base.web.common;

import java.util.List;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

/**
 * Json返回.
 * @version 2015-9-11
 */
public class JsonVo {

    private boolean flag;

    private String msg;

    private List<?> datas;

    private Object obj;

    public JsonVo() {
        super();
    }

    public JsonVo(boolean flag) {
        super();
        this.flag = flag;
    }

    public JsonVo(boolean flag, String msg) {
        super();
        this.flag = flag;
        this.msg = msg;
    }

    public JsonVo(boolean flag, String msg, List<?> datas) {
        super();
        this.flag = flag;
        this.msg = msg;
        this.datas = datas;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<?> getDatas() {
        return datas;
    }

    public void setDatas(List<?> datas) {
        this.datas = datas;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}
